﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userLeaveWordsType.aspx.cs" Inherits="WebApp.admin.user.userLeaveWordsType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>阳澄湖牌 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />

   <script type="text/javascript" language="javascript">
       var i = 1
       function addFile() {
           if (i < 8) {
               var str = '<BR>&nbsp;&nbsp;&nbsp; 留言类别：<input name="text" type="text" maxlength="20" />'
               document.getElementById('MyFile').insertAdjacentHTML("beforeEnd", str)

           }
           else {
               alert("您一次最多只能上传条！")
           }
           i++
       } 
   </script> 
</head>
<body class="body">
    <form id="form1" runat="server">
    <div style="margin:20px 0 0 50px;">
          <asp:DataList ID="DataList1" runat="server" RepeatColumns="1" CellPadding="4" ForeColor="#333333"  Width="100%">
       <ItemTemplate>
               <a href="javascript:;" onclick="if (confirm('您确实要删除该类别吗？')) window.location.href='msg_type.aspx?mid=<%# DataBinder.Eval(Container.DataItem, "msgtypeid")%>&amp;action=del';">[-]</a>
               留言类别：<input value="<%# DataBinder.Eval(Container.DataItem, "msgtype")%>"  name="content_<%# DataBinder.Eval(Container.DataItem, "msgtypeid")%>" id="content_<%# DataBinder.Eval(Container.DataItem, "msgtypeid")%>"/>
        </ItemTemplate>
      </asp:DataList>  

  <table width="100%" border="0" cellpadding="0" cellspacing="0">

    <tr>
      <td>
          <P id="MyFile">
      <a onclick="addFile()" href="#">[+]</a> 留言类别：<input name="text" type="text"  maxlength="20" />
        </P>
      
      </td>
    </tr>
         
       <tr>
          <td align="left" style="height: 24px;">
          <asp:ImageButton ID="ImageButton1" ImageUrl="../images/buttom-02.gif" runat="server" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
          </tr>

  </table>

    </div>
    </form>
</body>
</html>

